import request from '@/router/axios'

export function fetchChildrenAgeList(query) {
  return request({
    url: '/pvm/childrenage/page',
    method: 'get',
    params: query
  })
}

export function addChildrenAgeObj(obj) {
  return request({
    url: '/pvm/childrenage',
    method: 'post',
    data: obj
  })
}

export function getChildrenAgeObj(id) {
  return request({
    url: '/pvm/childrenage/' + id,
    method: 'get'
  })
}

export function delChildrenAgeObj(id) {
  return request({
    url: '/pvm/childrenage/' + id,
    method: 'delete'
  })
}

export function putChildrenAgeObj(obj) {
  return request({
    url: '/pvm/childrenage',
    method: 'put',
    data: obj
  })
}
